package com.example.auth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.auth.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.auth.entity.dto.AssignRoleDTO;
import com.example.auth.entity.dto.SysUserCreateDTO;
import com.example.auth.entity.dto.SysUserEditDTO;
import com.example.auth.entity.dto.SysUserQueryDTO;
import com.example.auth.entity.vo.SysUserQueryVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
* @author SIE
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2023-07-07 13:05:31
*/
public interface SysUserService extends IService<SysUser> {



    void insert(SysUserCreateDTO sysUserCreateDTO);

    Page<SysUserQueryVO> selectUserPage(Long pageNum, Long pageSize, SysUserQueryDTO sysUserQueryDTO);

    SysUserQueryVO getUserById(Long id);

    void updateUser(SysUserEditDTO sysUserEditDTO);

    Map<String, Object> getRolesByUserId(Long userId);

    void doAssign(AssignRoleDTO assignRoleDTO);

    void removeUserById(Long userId);

    void updateUserStatus(Long userId, Long status);

    void exportUserInfoExcel(HttpServletResponse response);

    void removeBatch(List<Long> idList);

    void importUserInfoExcel(MultipartFile file);
}
